module Smartbits
  class Tcl
    include AutoBase::Sessionable
    def initialize(host)
      @host = host
    end

    def login(param = {})
      return true
    end

    def logout
      return true
    end

    def write(str, param = {})
      AutoBase::debug "write: #{str}"
      @cmd = str
    end

    def read(param = {})
      AutoBase::debug "read: #{@cmd}"
      @cmd
    end

    def cmd(str, param = {})
      AutoBase::debug "cmd: #{str}"
      @cmd = str
    end
  end
end